<h2><?php echo __("all league boardgames")?></h2>

<table border="1">
  <tr>
    <th><?php echo __("name")?></th>
    <th><?php echo __("played matches")?></th>
    <th><?php echo __("tot points")?></th>
  </tr>
  <?php foreach($boardgames as $boardgame): ?>
    <tr>
      <td><?php echo link_to($boardgame, '@matches_boardgame?idBoardgame=' . $boardgame->getId());?></td>
      <td><?php echo $boardgame->getNPlayedMatches();?></td>
      <td><?php echo (is_null($boardgame->getTotPts())) ? "0" : $boardgame->getTotPts(); ?></td>
    </tr>
  <?php endforeach; ?>
</table>

<div id="paginazione"><?php include_partial('global/simple_pagination', array('route' => 'stats_boardgames', 'pager' => $boardgames, 'page' => $boardgames->getPage())) ?></div>

<div><?php echo link_to(__("indietro"), '@stats_league')?></div>